CCC = g++-3.3
CC = gcc
CFLAGS = -O3 -fPIC
LDFLAGS = -lpthread

TARGET=test

all: test

test: tas.o test.c
	$(CC) $(CFLAGS) $(LDFLAGS) -o $(TARGET) test.c tas.o -lpthread

tas.o: tas.c tas.h atomic.h Makefile
	$(CC) $(CFLAGS) -c tas.c  

clean:
	rm -f *.o *~ $(TARGET)
